package Q3;

public class GradeBook {
	private String courseName;	//course name for this GradeBook
	private String courseInstructor;	//instructor of the course
	
	public GradeBook(String courseName, String courseInstructor){
		setCourseName(courseName);
		setCourseInstructor(courseInstructor);
	}
	
	public void setCourseName(String name){
		this.courseName=name;
	}
	
	public void setCourseInstructor(String instructor){
		this.courseInstructor=instructor;
	}
	
	public String getCourseName(){
		return this.courseName;
	}
	
	public String getCourseInstructor(){
		return this.courseInstructor;
	}
	
	//display a welcome message to the GredeBook User
	public void displayMessage()
	{
		System.out.printf("Welcome to the grade book for\n%s!\n",
				getCourseName());
		System.out.printf("This course is presented by:\n%s\n",
				getCourseInstructor());
	}
}
